package com.geh.learn.cpu;

public class CpuTest {

    public static void main(String[] args) {
        for (int i = 0; i<10; i++) {
            new Thread(() -> {
                try {
                    Thread.sleep(100000);
                } catch (Exception e) {
                }
            }).start();

        }

        Thread t = new Thread(() -> {
            int i = 1;
            while (true) {
                i = (i++)/100;
            }
        });

        t.setName("Busiest Thread");
        t.start();
    }

}
